package com.tradeplus.admin.service;

import com.tradeplus.admin.dao.MemberDao;
import com.tradeplus.admin.dao.ModuleDao;
import com.tradeplus.admin.dao.PreferenceDao;
import com.tradeplus.admin.dao.PrivilegeDao;
import com.tradeplus.admin.model.Member;
import com.tradeplus.admin.model.Module;
import com.tradeplus.admin.model.Preference;
import com.tradeplus.admin.model.Privilege;
import java.util.List;

public class AdminDeskServiceImpl implements AdminDeskService {

    private MemberDao memberDao;
    private ModuleDao moduleDao;
    private PreferenceDao preferenceDao;
    private PrivilegeDao privilegeDao;

    public void setMemberDao(MemberDao memberDao) {
        this.memberDao = memberDao;
    }

    public void setModuleDao(ModuleDao moduleDao) {
        this.moduleDao = moduleDao;
    }

    public void setPreferenceDao(PreferenceDao preferenceDao) {
        this.preferenceDao = preferenceDao;
    }

    public void setPrivilegeDao(PrivilegeDao privilegeDao) {
        this.privilegeDao = privilegeDao;
    }
    
    
    
    @Override
    public Member memberInfo(Long memberId) {
        return (Member)memberDao.loadMemberById(memberId);
    }

    @Override
    public List<Module> moduleInfo() {
        return moduleDao.loadModule();
    }

    @Override
    public Preference preferenceInfo(Long memberId) {
        return null;
    }

    @Override
    public Privilege privilegeInfo(Long memberId) {
        // TODO Auto-generated method stub
        return null;
    }
}
